import request from '@/utils/request'

//老板报表
export function bossReport(query) {
  return request({
    url: '/system/detail/bossReport',
    method: 'get',
    params: query
  })
}
// 查询统计利润明细列表
export function listDetail(query) {
  return request({
    url: '/system/detail/list',
    method: 'get',
    params: query
  })
}

// 查询统计利润明细详细
export function getDetail(id) {
  return request({
    url: '/system/detail/' + id,
    method: 'get'
  })
}

// 新增统计利润明细
export function addDetail(data) {
  return request({
    url: '/system/detail',
    method: 'post',
    data: data
  })
}

// 修改统计利润明细
export function updateDetail(data) {
  return request({
    url: '/system/detail',
    method: 'put',
    data: data
  })
}

// 删除统计利润明细
export function delDetail(id) {
  return request({
    url: '/system/detail/' + id,
    method: 'delete'
  })
}

export function computeDetail(){
  return request({
    url: '/bill/retail/computeProfit',
    method: 'get'
  })
}
